package com.yami.shop.bean.app.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yami.shop.common.serializer.json.ImgJsonSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

/**
 * 店铺的头信息
 * @author LGH
 */
@Data
@Schema(description ="店铺的头信息")
public class ShopHeadInfoDto {

    @Schema(description = "店铺id", required = true)
    private Long shopId;

    @Schema(description = "店铺名称", required = true)
    private String shopName;

    @JsonSerialize(using = ImgJsonSerializer.class)
    @Schema(description = "店铺logo", required = true)
    private String shopLogo;

    @Schema(description = "店铺评分")
    private Double shopScore;

    @Schema(description = "粉丝数量", required = true)
    private Long fansCount;

    @Schema(description = "商品数量", required = true)
    private Long prodCount;

    @Schema(description = "店铺简介", required = true)
    private String intro;

    @Schema(description = "店铺主页id", required = true)
    private Long renovationId;

    @Schema(description = "店铺联系电话", required = true)
    private String tel;

    @Schema(description = "店铺状态(-1:未开通 0: 停业中 1:营业中 2:平台下线 3:平台下线待审核)，可修改")
    private Integer shopStatus;

    @Schema(description = "0普通店铺 1优选好店")
    private Integer type;

    @Schema(description = "签约起始时间")
    private Date contractStartTime;

    @Schema(description = "签约终止时间")
    private Date contractEndTime;

    @Schema(description = "新生用户编号")
    private String shopXsUserId;
}
